Skip to content

Fix flag comparisons in FindPacket#473

Open
arch1t3cht wants to merge 2 commits intoFFMS:masterfrom
arch1t3cht:fix-find-packet
Open

Fix flag comparisons in FindPacket#473
arch1t3cht wants to merge 2 commits intoFFMS:masterfrom
arch1t3cht:fix-find-packet

Conversation

@arch1t3cht
Copy link
Copy Markdown
Contributor

This did not actually break any samples because even the PTS + Pos
combination was enough to uniquely identify all packets in the test
files, but before this commit the Hidden comparison was broken on
packets that had a Hidden flag set.

Either way, sorry for introducing this bug.

This did not actually break any samples because even the PTS + Pos
combination was enough to uniquely identify all packets in the test
files, but before this commit the Hidden comparison was broken on
packets that had a Hidden flag set.

After this commit, all FindPacket calls in all test cases find the
packet using the first check (comparing all fields) or not at all.
Apart from being a tiny optimization this makes it easier to check for
which sample files there are packets are not being found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant